package cn.iocoder.yudao.framework.common.pojo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @author wyl
 * @date 2025/4/16
 * @des
 */
@Schema(description = "主键参数")
@Data
public class IdReq {

    @Schema(description = "主键id", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "主键id不能为空")
    private Long id;
}
